<?php

declare(strict_types=1);

namespace App\Roll\Model;

use Mine\MineModel;

/**
 * @property int $id ID
 * @property string $name 房间名称
 * @property int $sort_id 排序
 * @property string $img 房间图片
 * @property int $type 房间类型  1：主播   2：官方
 * @property int $anchor_id 主播ID
 * @property float $recharge_money 满足充值金额
 * @property int $recharge_start_time 充值开始时间
 * @property int $recharge_end_time 充值结束时间
 * @property int $num_people 目前房间人数
 * @property string $secret_signal 房间口令
 * @property int $start_time 用户可以进入房间的初始时间
 * @property int $end_time 用户不能进入房间的结束时间
 * @property int $award_time 开奖截止时间
 * @property int $status 房间状态 1：待开放  2：开放中  3：已结束 
 * @property int $created_by 创建者
 * @property int $create_time 创建时间
 * @property int $update_time 更新时间
 */
class RollInfo extends MineModel
{
    public bool $timestamps = false;
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'roll_info';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'name', 'sort_id', 'img', 'type', 'anchor_id', 'recharge_money', 'recharge_start_time', 'recharge_end_time', 'num_people', 'secret_signal', 'start_time', 'end_time', 'award_time', 'status', 'created_by', 'create_time', 'update_time'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'sort_id' => 'integer', 'type' => 'integer', 'anchor_id' => 'integer', 'recharge_money' => 'float', 'recharge_start_time' => 'integer', 'recharge_end_time' => 'integer', 'num_people' => 'integer', 'start_time' => 'integer', 'end_time' => 'integer', 'award_time' => 'integer', 'status' => 'integer', 'created_by' => 'integer', 'create_time' => 'integer', 'update_time' => 'integer'];
}
